<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
    <link rel="icon" type="image/gif" href="<?php echo base_url(); ?>favicon.gif">
	<!-- jQuery library - I get it from Google API's -->
	<script src="<?php echo base_url(); ?>script/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="<?php echo base_url(); ?>script/jfunc.js" type="text/javascript"></script>
    <link href="<?php echo base_url(); ?>css/admincp.css" type="text/css" rel="stylesheet" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function keypress(e){
        //Ham dung de ngan nguoi dung nhap cac ky tu khac ky tu so vao textbox
            var keypressed = null;
            if (window.event){
            keypressed = window.event.keyCode; //IE
            }else{
                keypressed = e.which; //NON-IE, Standard
            }if (keypressed < 48 || keypressed > 57){
                //CharCode cua 0 la 48(theo bang ma ASCII)
                //Charcode cua 9 là 57 (theo bang ma ASCII)
                if (keypressed == 8 || keypressed == 127){//Phim Del và Back
                    return;
                }
                return false;
            }
        }
    </script>
</head>
<body>
<!--------------------------------------- content------------------------>
<div>
    <div class="">
        <span class="new_title">Thêm mới video</span><br/>
        <form method="post" enctype="multipart/form-data" name="movieupdate" action="">
            <table>
                <tr>
                    <td >
                        <!-- ten film -->
                        <label for="intput_movie_name" class="new-title-input">Tên video</label>
                    </td>
                    <td colspan="2"><input class="input-name-vd" type="text" size="84" name="txt_name" value=""/>(*)</td>
                </tr>
                <tr>
                    <td class="td">
                        <label for="intput_image" class="new-title-input">Hình đại diện</label>
                    </td>
                    <td>
                        <input type="file" name="image_file" id="image_file" />
                    </td>
                </tr>
                <tr>
                    <td class="td">
                        <!-- theloai -->
                        <label for="intput_movie_category" class="new-title-input">Thể Loại</label>
                    </td>
                    <td>
                        <!-- category -->
                        <select class="input" name="cbx_category" id="cbx_category"">
                        <?php
                        foreach($categoryList as $category):
                                echo "<option value='" . $category['movie_category_id']. "'>" . $category['name'] . "</option>";
                        endforeach;
                        ?>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="td">
                        <label for="intput_year" class="new-title-input">Năm phát hành: </label>
                    </td>
                    <td>
                        <input class="input" type="text" name="txt_year" onkeypress="return keypress(event);" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="td">
                        <!-- dien vien -->
                        <label for="intput_actors" class="new-title-input">Diễn viên: </label>
                    </td>
                    <td>
                        <input class="input" type="text" name="txt_actors" value="" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <!-- gioi thieu -->
                        <label for="intput_movie_content" class="new-title-input">Nội dung chính:</label>
                        <p><textarea rows="2" cols="80" name="main_content"></textarea></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <!-- gioi thieu -->
                        <label for="intput_movie_introduction" class="new-title-input">Thông tin:</label>
                        <p><textarea name="introduction" id="introduction"></textarea>
                        <?php echo $editor; ?></p>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" name="addnew-submit" id="submitForm" value="Cập Nhật" style="cursor: pointer;"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div><!---------- end content-------->
</body>
</html>
